/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.project.engineering.pages;

import org.apache.tapestry5.ioc.annotations.Inject;
import org.apache.tapestry5.util.TextStreamResponse;
import pl.project.engineering.services.Repository;

/**
 *
 * @author ksmolnicki
 */
public class JsonChartData {
  
  @Inject
  Repository repo;
  
  Object onActivate(){
    return new TextStreamResponse("application/json", repo.getJSONData());
  }
  
}
